﻿using VisualCronAPI;

namespace App_Code.Objects
{
    /// <summary>
    /// Summary description for ServerDTO
    /// </summary>
    public class ServerDTO
    {
        public string Server { get; set; }

        public string ServerId { get; set; }

        public string Username { get; set; }

        public string UserServerId { get; set; }

        public ServerDTO(Server server)
        {
            this.ServerId = server.UserServerId;
            this.Server = server.IP;
            this.Username = server.Connection.UserName;
            this.UserServerId = server.UserServerId;

        }
    }
}